#!/usr/bin/env python3
# #-*-coding: utf-8 -*-
# __author__ ="HuJiang";

a=123;
print("a的值是%d,类型是%s"%(a,type(a)));
a = "hujiang";
print("a 的值是：%s，类型为：%s"%(a, type(a)));
a = b'hujiang';
print("a 的值是：%s，类型为：%s"%(a, type(a)));
a = r'hujiang';
print("a 的值是：%s，类型为：%s"%(a, type(a)));
a = u'hujiang';
print("a 的值是：%s，类型为：%s"%(a, type(a)));

#==========lise==============
l=["dsa",25,66,True]
print(l)
l=list("伞兵%d号" % i for i in range(1,11));
print(l)

# ==== dict ====
d={"name":"wqy","age":10,"gender":"male"};
print(d);
print(d.keys());
print(d.values());
d["wc"]="aaa";
print(d.get("name","wc"));
print(d);
d.pop("wc");
print("dict: %s, length: %s"%(d, len(d)));

for key in d:
    print(key, d[key]);

dict_1 = {"name":"hujiang", "age":22}
dict_2 = {"sex":"man"}
print(dict(dict_1, **dict_2))

i=0;
for i in range(1,10):
    if i<5:
        print(i);
    else:
        print(None)


